﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.VisitorCenterUI {
    import flash.events.*;
    import flash.display.*;
    import flash.geom.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import Classes.util.*;
    import Display.*;

    public class VisitorCenterDialog extends GenericDialog {

        public static const TAB_FACTS:int = 0;
        public static const TAB_VISITORS:int = 1;

        public static var DEFAULT_TAB:int = 1;
        public static var assetDict:Dictionary = new Dictionary();

        public function VisitorCenterDialog(_arg1:String, _arg2:String="", _arg3:int=0, _arg4:Function=null, _arg5:String="", _arg6:String="", _arg7:Boolean=true, _arg8:int=0, _arg9:String="", _arg10:Function=null, _arg11:String=""){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11);
            this.m_modal = false;
        }
        override protected function loadAssets():void{
            Global.delayedAssets.get(DelayedAssetLoader.TABBED_ASSETS, makeAssets);
        }
        override protected function createAssetDict():Dictionary{
            assetDict["dialog_bg"] = (new m_comObject.conventionCenter_bg() as DisplayObject);
            assetDict["tab_unselected"] = m_comObject.conventionCenter_tab_unselected;
            assetDict["tab_selected"] = m_comObject.conventionCenter_tab_selected;
            assetDict["inner_top"] = m_comObject.conventionCenter_innerArea_round;
            assetDict["inner_undertab"] = m_comObject.conventionCenter_innerArea_flatTop;
            assetDict["conventionCenter_pagination_border"] = m_comObject.conventionCenter_pagination_border;
            assetDict["conventionCenter_pagination_bottom_disabled"] = m_comObject.conventionCenter_pagination_bottom_disabled;
            assetDict["conventionCenter_pagination_bottom_over"] = m_comObject.conventionCenter_pagination_bottom_over;
            assetDict["conventionCenter_pagination_bottom_up"] = m_comObject.conventionCenter_pagination_bottom_up;
            assetDict["conventionCenter_pagination_dot"] = m_comObject.conventionCenter_pagination_dot;
            assetDict["conventionCenter_pagination_top_disabled"] = m_comObject.conventionCenter_pagination_top_disabled;
            assetDict["conventionCenter_pagination_top_over"] = m_comObject.conventionCenter_pagination_top_over;
            assetDict["conventionCenter_pagination_top_up"] = m_comObject.conventionCenter_pagination_top_up;
            return (assetDict);
        }
        override protected function createDialogView(_arg1:Dictionary):GenericDialogView{
            return (new VisitorCenterDialogView(_arg1, m_message, m_title, m_type, m_callback));
        }
        override public function centerPopup():void{
            var _local1:Rectangle;
            var _local2:Point;
            if (parent){
                _local1 = getRect(parent);
                _local2 = new Point(30, Global.stage.stageHeight);
                this.x = _local2.x;
                this.y = 20;
            };
        }
        override protected function showTween():void{
            var me:* = null;
            super.showTween();
        }
        override protected function onShow():void{
            if (m_shown == false){
                if (useSystemCursor()){
                    m_cursorId = UI.setCursor(null);
                };
                this.mouseEnabled = (this.mouseChildren = true);
                m_shown = true;
                Global.stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);
            } else {
                m_showOnLoad = true;
            };
            if (!Global.guide.isActive()){
                Sounds.play("dialogSpawn");
            };
        }

    }
}//package Display.VisitorCenterUI 
